﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

#if NETFX_CORE || WINDOWS_PHONE
using Windows.Storage;
#else

#endif

namespace WindowsCommonStorage
{
    public static class CommonKnownFolders
    {


        /// <summary>
        /// ドキュメント ライブラリを取得します。
        /// </summary>
        public readonly static CommonStorageFolder DocumentsLibrary =
#if NETFX_CORE || WINDOWS_PHONE
         new NetFxCoreStorageFolder { _folder = KnownFolders.DocumentsLibrary };
#else
        new NetFxStorageFolder{_folder = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments))};
#endif


        /// <summary>
        /// 音楽ライブラリを取得します。
        /// </summary>
        public readonly static CommonStorageFolder MusicLibrary =

#if NETFX_CORE || WINDOWS_PHONE
        new NetFxCoreStorageFolder { _folder = KnownFolders.MusicLibrary };
#else
        new NetFxStorageFolder{_folder = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.MyMusic))};
#endif


        /// <summary>
        /// 画像ライブラリを取得します。
        /// </summary>
        public readonly static CommonStorageFolder PicturesLibrary =

#if NETFX_CORE || WINDOWS_PHONE
        new NetFxCoreStorageFolder { _folder = KnownFolders.PicturesLibrary };
#else
        new NetFxStorageFolder { _folder = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)) };
#endif



        /// <summary>
        /// ビデオ ライブラリを取得します。
        /// </summary>
        public readonly static CommonStorageFolder VideosLibrary =

#if NETFX_CORE || WINDOWS_PHONE
        new NetFxCoreStorageFolder { _folder = KnownFolders.VideosLibrary };
#else
        new NetFxStorageFolder{_folder = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.MyVideos))};
#endif
    }
}
